package cn.dakaqi.services.user.impl;

import cn.dakaqi.dao.user.UserSupplementDao;
import cn.dakaqi.entities.user.UserSupplement;
import cn.dakaqi.services.user.UserSupplementService;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author beliveli at 16/08/12
 */
@Component(value = "userSupplementService")
@Transactional
public class UserSupplementServiceImpl implements UserSupplementService {

    @Resource
    private UserSupplementDao userSupplementDao;

    @Override
    public UserSupplement findByUserId(int userId) {
        return userSupplementDao.findByUserId(userId);
    }
}
